class UserDataVo {
  UserData? data;

  UserDataVo({this.data});

  UserDataVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new UserData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class UserData {
  String? mobile;
  String? nickname;
  String? levelStr;
  int? level;
  String? invitationCode;
  String? invitationUrl;
  int? disable;
  String? avatar;
  String? wechat;
  int? isTeamLeader;
  int? teamId;
  String? createdAt;
  String? updatedAt;
  int? isPayPassword;
  AssetsData? assets;
  Statistics? statistics;
  int? isIdentity;
  int? isNew;
  int? isActivity;
  int? newUsers;
  String? expectedSubsidy;
  String? actualSubsidy;
  int? isAdmin;
  int? isWriteoffOfficer;

  UserData(
      {this.mobile,
      this.nickname,
      this.levelStr,
      this.level,
      this.invitationCode,
      this.invitationUrl,
      this.disable,
      this.avatar,
      this.wechat,
      this.isTeamLeader,
      this.teamId,
      this.createdAt,
      this.updatedAt,
      this.isPayPassword,
      this.assets,
      this.statistics,
      this.isIdentity,
      this.isNew,
      this.isActivity,
      this.newUsers,
      this.expectedSubsidy,
      this.actualSubsidy,
      this.isAdmin,
      this.isWriteoffOfficer});

  UserData.fromJson(Map<String, dynamic> json) {
    mobile = json['mobile'];
    nickname = json['nickname'];
    levelStr = json['level_str'];
    level = json['level'];
    invitationCode = json['invitation_code'];
    invitationUrl = json['invitation_url'];
    disable = json['disable'];
    avatar = json['avatar'];
    wechat = json['wechat'];
    isTeamLeader = json['is_team_leader'];
    teamId = json['team_id'];
    createdAt = json['created_at'];
    updatedAt = json['updated_at'];
    isActivity = json['is_activity'];
    isNew = json['is_new'];
    isPayPassword = json['is_pay_password'];
    isAdmin = json['is_admin'];
    assets =
        json['assets'] != null ? new AssetsData.fromJson(json['assets']) : null;
    statistics = json['statistics'] != null
        ? new Statistics.fromJson(json['statistics'])
        : null;
    isIdentity = json['is_identity'];
    newUsers = json['new_users'];
    expectedSubsidy = json['expected_subsidy'];
    actualSubsidy = json['actual_subsidy'];
    isWriteoffOfficer = json['is_writeoff_officer'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['mobile'] = this.mobile;
    data['nickname'] = this.nickname;
    data['level_str'] = this.levelStr;
    data['level'] = this.level;
    data['invitation_code'] = this.invitationCode;
    data['invitation_url'] = this.invitationUrl;
    data['disable'] = this.disable;
    data['avatar'] = this.avatar;
    data['wechat'] = this.wechat;
    data['is_team_leader'] = this.isTeamLeader;
    data['team_id'] = this.teamId;
    data['created_at'] = this.createdAt;
    data['updated_at'] = this.updatedAt;
    data['is_pay_password'] = this.isPayPassword;
    data['is_new'] = this.isNew;
    data['is_activity'] = this.isActivity;
    data['is_admin'] = this.isAdmin;
    if (this.assets != null) {
      data['assets'] = this.assets!.toJson();
    }
    if (this.statistics != null) {
      data['statistics'] = this.statistics!.toJson();
    }
    data['is_identity'] = this.isIdentity;
    data['new_users'] = this.newUsers;
    data['expected_subsidy'] = this.expectedSubsidy;
    data['actual_subsidy'] = this.actualSubsidy;
    data['is_writeoff_officer'] = this.isWriteoffOfficer;
    return data;
  }
}

class AssetsData {
  String? shopping;
  String? subsidy;
  String? cash;
  String? gratitude;
  String? feedbackGratitude;

  AssetsData({this.shopping, this.subsidy, this.cash, this.gratitude, this.feedbackGratitude});

  AssetsData.fromJson(Map<String, dynamic> json) {
    shopping = json['shopping'].toString();
    subsidy = json['subsidy'].toString();
    cash = json['cash'].toString();
    gratitude = json['gratitude'].toString();
    feedbackGratitude = json['feedback_gratitude'].toString();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['shopping'] = this.shopping;
    data['subsidy'] = this.subsidy;
    data['cash'] = this.cash;
    data['gratitude'] = this.gratitude;
    data['feedback_gratitude'] = this.feedbackGratitude;
    return data;
  }
}

class Statistics {
  List<int>? seckill;
  List<int>? shopping;

  Statistics({this.seckill, this.shopping});

  Statistics.fromJson(Map<String, dynamic> json) {
    seckill = json['seckill'].cast<int>();
    shopping = json['shopping'].cast<int>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['seckill'] = this.seckill;
    data['shopping'] = this.shopping;
    return data;
  }
}